package com.woniuxy.sales.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.sales.model.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Administrator
* @description 针对表【goods】的数据库操作Service
* @createDate 2024-11-05 15:27:59
*/
public interface GoodsService extends IService<Goods> {

    //分页查询所有商品
    Page<Goods> findAll(Integer pageNum, Integer pageSize);


    //根据类别分页查询商品
    Page<Goods> findByType(Integer pageNum, Integer pageSize, Integer type);

    Goods findById(Integer id);
}
